package com.zfzs.post.modules.goods.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @description:
 * @author: ck
 * @create: 2019-12-04 15:48
 **/
@Data
public class GoodsWebVO {
    //主键
    private String id;
    //购买数量
    @NotNull(message = "购买起始必填")
    private Integer leastNum;
    //单价
    @NotNull(message = "单价必填")
    private Double price;
    //封面图片
    @NotBlank(message = "封面图片必传")
    private String coverUrl;
    //商品类型
    @NotNull(message = "商品类型必填")
    private Integer goodsType;
    //是否显示
    @NotNull(message = "是否显示必选")
    private Integer isShow;
    //名称
    @NotBlank(message = "商品名称必填")
    private String name;
    //渠道id
    private Long channelId;
    //渠道名称
    private String channelName;
    //创建时间
    private Date createTime;
    //排序
    @NotNull(message = "商品排序必填")
    private Integer sort;
    //机器类型
    @NotNull(message = "机器类型必选")
    private Long terminalTypeId;
    //机具名称
    private String terminalTypeName;
    //机器型号
    @NotBlank(message = "机器型号必填")
    private String model;
    //轮播列表
    private List<GoodsImgVO> banList;
    //详情列表
    private List<GoodsImgVO> inList;
}
